package com.yhb.dao;

import com.yhb.model.WithdrawFlow;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface WithdrawFlowMapper {
    List<WithdrawFlow> getAll();

    WithdrawFlow getFlowById(@Param("id") String platformId);

    List<WithdrawFlow> getUserFlows(@Param("userId")String userId);
    List<WithdrawFlow> getFlowsOfRange(@Param("start") Date start, @Param("end") Date end);

    int addFlow(@Param("flow") WithdrawFlow flow);

    int updateFlow(@Param("flow") WithdrawFlow flow);

    int deleteFlow(@Param("flowId") String flowId);

//    List<BalanceFlow> getWithdrawList(@Param("userId")String userId, @Param("types")List<Integer> types);
}
